package com.qingzhu.service;

import com.qingzhu.pojo.CustomPage;
import com.qingzhu.pojo.ShopCart;
import com.qingzhu.pojovo.OrderVo;

import java.util.List;

public interface OrderService {
    // 创建订单
    public OrderVo createOrder(ShopCart shopCart, String id);
    // 根据订单状态查找所有订单
    public CustomPage<OrderVo> findOrderAll(String status, int userId, int pageNum, int pageSize);
    // 订单搜索
    public CustomPage<OrderVo> searckOrder(String selectType,String searchInput, int userId, int pageNum, int pageSize);
    // 根据订单id删除订单
    public int deleteOrderById(int orderId);
    // 根据订单id恢复被删除的订单
    public int recoveryOrderById(int orderId);
}
